<?php $guestbookObj=(new Zmsun\Copen\TopPackage("zm345.open.enterpr",new Zmsun\Copen\OpenLib($this->serviceManager->get("Database"),$this->serviceManager->get("DBTablePrefix"))))->guestbook;$errorStr='';if(!filter_has_var(INPUT_POST,'ids')){$errorStr='数据格式错误';}if(!$errorStr){$ids=(array)$_POST['ids'];$ids=array_filter($ids,function($val){if($val)return true;});if($ids){$guestbookdel=$guestbookObj->guestbooksDelete;$stat=$guestbookdel->setIds($ids)->exec();if($stat['status']=='error'){$errorStr=$stat['error_msg'];}}}if($errorStr){$result=['status'=>'error','info'=>$errorStr];}else{$result=['status'=>'ok','info'=>''];}echo json_encode($result);?>